package com.gxa.uhome.controller;

import com.gxa.uhome.pojo.Admin;
import com.gxa.uhome.pojo.AdminRole;
import com.gxa.uhome.util.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author: qingyao
 * @date: 12:45 2021/6/5
 */
@RestController
@RequestMapping("/adminrole")
@Api(value = "管理员角色关系模块",produces = "application/json;charset=UTF-8")
public class AdminRoleController {
/*    @ApiOperation(value = "查看所有管理员角色关系的操作",
    notes = "请查看",response = AdminRole.class,
    httpMethod = "post")
    @PostMapping("/getall")
    @ResponseBody
    public JsonResult get() throws Exception{
        JsonResult jsonResult=new JsonResult();
        jsonResult.setCode("1");
        jsonResult.setMsg("查询成功");
        jsonResult.setData("查了");
        return jsonResult;
    }

    @ApiOperation(value = "根据角色关系表id搜索的操作",
            notes = "角色关系表id",response = AdminRole.class,
            httpMethod = "post")
    @PostMapping("/selectbyid")
    @ResponseBody
    public JsonResult selectbyid() throws Exception{
        JsonResult jsonResult=new JsonResult();
        jsonResult.setCode("1");
        jsonResult.setMsg("查询成功");
        jsonResult.setData("查了");
        return jsonResult;
    }

    @ApiOperation(value = "根据管理员id搜索的操作",
            notes = "管理员id",response = AdminRole.class,
            httpMethod = "post")
    @PostMapping("/selectbyadid")
    @ResponseBody
    public JsonResult selectbyadid() throws Exception{
        JsonResult jsonResult=new JsonResult();
        jsonResult.setCode("1");
        jsonResult.setMsg("查询成功");
        jsonResult.setData("查了");
        return jsonResult;
    }

    @ApiOperation(value = "根据角色id搜索的操作",
            notes = "角色id",response = AdminRole.class,
            httpMethod = "post")
    @PostMapping("/selectbyroleid")
    @ResponseBody
    public JsonResult selectbyroleid() throws Exception{
        JsonResult jsonResult=new JsonResult();
        jsonResult.setCode("1");
        jsonResult.setMsg("查询成功");
        jsonResult.setData("查了");
        return jsonResult;
    }*/
}
